package com.ygxsk.carhome.ui.archive;

import android.os.Parcel;
import android.os.Parcelable;

/*
 * @Author:itchenqi175@163.com
 * @Time:2023-08-13  17:23
 * @Description:设置需要上传的客户信息
 */
public class ClientManageSingleUpLoad implements Parcelable {

//    {
//        "clientManage": {
//        "clientName": "张三", //客户姓名
//                "idCard": "13010818890212122435", //客户证件号码
//                "gender": 1, //性别
//                "age": 23, //年龄
//                "phone": "151626332333", //手机号
//                "wechatNumber": "Z_s1234", //微信号
//                "email": "Z_s1234@qq.com", //电子邮箱，比如 example@qq.com
//                "address": "河北省石家庄裕华区盛邦花园1区", //地址
//                "companyDetail": "", //公司
//                "position": "运维" //职位
//    }, //客户信息
//        "vin": "车架号", //车架号
//            "licenseNumber": "冀A88888", //车牌号
//            "vehicleType": "1", //车辆类型
//            "carBranch": 10, //品牌
//            "carModel": "型号", //型号
//            "carSeries": 1, //车系
//            "engineNum": "发动机号", //发动机号
//            "archivesManageList": [
//        {
//            "archiveTypeId": 1, //合同类型
//                "archiveNo": "", //合同编号
//                "amount": "", //合同金额
//                "signingDate": "", //签订时间
//                "carBrand": "", //品牌
//                "partyA": "", //购车人
//                "brandModel": "", //品牌型号
//                "archivesManageFileVoList": [
//            {
//                "filePath": "" //合同附件路径
//            }
//] //合同附件管理
//        }
//], //合同管理
//        "informationAccessoryList": [
//        {
//            "filePath": "http://地址", //档案附件路径
//                "fileName": "文件名称",
//                "fileSize": 1023
//        }
//] //档案附件
//    }


//                "clientManage": {
//                "clientName": "张三", //客户姓名
//                "idCard": "13010818890212122435", //客户证件号码
//                "gender": 1, //性别
//                "age": 23, //年龄
//                "phone": "151626332333", //手机号
//                "wechatNumber": "Z_s1234", //微信号
//                "email": "Z_s1234@qq.com", //电子邮箱，比如 example@qq.com
//                "address": "河北省石家庄裕华区盛邦花园1区", //地址
//                "companyDetail": "", //公司
//                "position": "运维" //职位
//

    /**
     * clientName : 张三
     * idCard : 13010818890212122435
     * gender : 1
     * age : 23
     * phone : 151626332333
     * wechatNumber : Z_s1234
     * email : Z_s1234@qq.com
     * address : 河北省石家庄裕华区盛邦花园1区
     * companyDetail :
     * position : 运维
     */


    private String clientName;
    private String idCard;
    private String gender;
    private String age;
    private String phone;
    private String wechatNumber;
    private String email;
    private String address;
    private String companyDetail;
    private String position;

    public String getClientName() {
        return clientName;
    }

    public void setClientName(String clientName) {
        this.clientName = clientName;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getWechatNumber() {
        return wechatNumber;
    }

    public void setWechatNumber(String wechatNumber) {
        this.wechatNumber = wechatNumber;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getCompanyDetail() {
        return companyDetail;
    }

    public void setCompanyDetail(String companyDetail) {
        this.companyDetail = companyDetail;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.clientName);
        dest.writeString(this.idCard);
        dest.writeString(this.gender);
        dest.writeString(this.age);
        dest.writeString(this.phone);
        dest.writeString(this.wechatNumber);
        dest.writeString(this.email);
        dest.writeString(this.address);
        dest.writeString(this.companyDetail);
        dest.writeString(this.position);
    }

    public void readFromParcel(Parcel source) {
        this.clientName = source.readString();
        this.idCard = source.readString();
        this.gender = source.readString();
        this.age = source.readString();
        this.phone = source.readString();
        this.wechatNumber = source.readString();
        this.email = source.readString();
        this.address = source.readString();
        this.companyDetail = source.readString();
        this.position = source.readString();
    }

    public ClientManageSingleUpLoad() {
    }

    protected ClientManageSingleUpLoad(Parcel in) {
        this.clientName = in.readString();
        this.idCard = in.readString();
        this.gender = in.readString();
        this.age = in.readString();
        this.phone = in.readString();
        this.wechatNumber = in.readString();
        this.email = in.readString();
        this.address = in.readString();
        this.companyDetail = in.readString();
        this.position = in.readString();
    }

    public static final Parcelable.Creator<ClientManageSingleUpLoad> CREATOR = new Parcelable.Creator<ClientManageSingleUpLoad>() {
        @Override
        public ClientManageSingleUpLoad createFromParcel(Parcel source) {
            return new ClientManageSingleUpLoad(source);
        }

        @Override
        public ClientManageSingleUpLoad[] newArray(int size) {
            return new ClientManageSingleUpLoad[size];
        }
    };
}
